package cn.com.util;

import org.apache.log4j.Logger;

import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;

public class util {

    private static Logger logger=Logger.getLogger(util.class);
    public static void comeBack(HttpServletResponse response,String json){
        try (PrintWriter writer = response.getWriter()) {
            writer.print(json);
        }catch (Exception e){
            logger.warn("响应请求异常");
        }
    }
}
